﻿using CommunityToolkit.Mvvm.ComponentModel;
using Company.Shell.Enums;

namespace Company.Shell.Models
{
    /// <summary>
    /// 程序缓存实体
    /// </summary>
    public class CacheEntity : ObservableObject
    {
        private int roomId;
        /// <summary>
        /// 房间号
        /// </summary>
        public int RoomId 
        { 
            get { return roomId; } 
            set { SetProperty(ref roomId, value); }
        }

        private string? programName;
        /// <summary>
        /// 程序名
        /// </summary>
        public string? ProgramName
        {
            get { return programName; }
            set { SetProperty(ref programName, value); }
        }

        private string? csv;
        /// <summary>
        /// csv文件名
        /// </summary>
        public string? Csv
        {
            get { return csv; }
            set { SetProperty(ref csv, value); }
        }

        private RoomMode roomMode;
        /// <summary>
        /// 运行状态
        /// </summary>
        public RoomMode RoomMode
        {
            get { return roomMode; }
            set { SetProperty(ref roomMode, value); }
        }

        private DateTime startTime;
        /// <summary>
        /// 开始运行时间
        /// </summary>
        public DateTime StartTime
        {
            get { return startTime; }
            set { SetProperty(ref startTime, value); }
        }


        private DateTime writeTime;
        /// <summary>
        /// 写数据时间
        /// </summary>
        public DateTime WriteTime
        {
            get { return writeTime; }
            set { SetProperty(ref writeTime, value); }
        }

    }
}
